public class Person {
    public static void main(String[] args){
        Human h1 = new Human();
        Human h2 = new Human();
        h1.setAge(-1);
        h2.setAge(18);
        h1.speak();
        h2.speak(); 
    } 
}


class Human{ 
    private int ages;
    public void setAge(int a){
        if(a<0 || a>100){
            System.out.println("that is not a legal age!");
            return;
        }
        ages = a; 
    } 
    public int getAge(){
        return ages;
    }
    public void speak(){
        System.out.println("Hello!I'm " + ages + " old!");
    } 
}

